package common;

import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolUtils {
    private static final ThreadPoolExecutor executor=new ThreadPoolExecutor(
            10,
            100,
            10, TimeUnit.SECONDS,
            new LinkedBlockingQueue(),
            Executors.defaultThreadFactory(),
            new ThreadPoolExecutor.AbortPolicy()
    );
    public ThreadPoolUtils(){}

    public static ThreadPoolExecutor getThreadPoolExecutor(){
         return executor;
    }

}
